<%= header %>
<!--
	XHR beacons should wait until after page view beacon is sent and not be unblocked by an early beacon
-->
<script src="13-xhr-before-onload-alwayssendxhr.js" type="text/javascript"></script>
<%= boomerangSnippet %>
<script>
// Force navigation to TYPE_NAVIGATE
if (window.performance) {
	window.performance.__defineGetter__("navigation", function() {
		return {type: 0, redirectCount: 0};
	});
}

BOOMR_test.init({
	Early: {
		enabled: true
	},
	testAfterOnBeacon: BOOMR.plugins.AutoXHR ? 3 : 2,
	AutoXHR: {
		alwaysSendXhr: true
	},
	ResourceTiming: {
		enabled: true
	},
	instrument_xhr: true,
	onBoomerangLoaded: function() {
		var xhr = new XMLHttpRequest();
		xhr.open("GET", "/blackhole");
		xhr.send(null);
	}
});

</script>
<!-- delay load a second -->
<img src="/delay?delay=5000&file=/pages/07-autoxhr/support/img.jpg" />
<%= footer %>
